//
//  TestIGKListCtrl.m
//  testTool
//
//  Created by qiankun on 2019/7/16.
//  Copyright © 2019 com.qiankun. All rights reserved.
//

#import "TestIGKListCtrl.h"

#import "TestIGCell.h"
@implementation TestIGKListCtrl

-(NSInteger)numberOfItems{
    return 1;
}

-(CGSize)sizeForItemAtIndex:(NSInteger)index{
    const CGFloat width = self.collectionContext.containerSize.width;
    const CGFloat height = 74.0;
    return CGSizeMake(width, height);
}
-(UICollectionViewCell *)cellForItemAtIndex:(NSInteger)index{
    const Class cellCalss = [TestIGCell class];
    TestIGCell *cell = (TestIGCell *)[self.collectionContext dequeueReusableCellOfClass:cellCalss forSectionController:self atIndex:index];
    cell.model = _model;
    return cell;
}
-(void)didUpdateToObject:(id)object{
    _model = (IGModel *)object;
    
}
@end
